<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改审批流转记录')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-approveLog-edit" th:object="${approveLog}">
            <input name="approveLogId" th:field="*{approveLogId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">审批实体ID，按照类型不同，分别对应不同的实体：</label>
                <div class="col-sm-8">
                    <input name="entityId" th:field="*{entityId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">审批结果，0 驳回，1 通过：</label>
                <div class="col-sm-8">
                    <input name="approveResult" th:field="*{approveResult}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">审批意见：</label>
                <div class="col-sm-8">
                    <input name="approveComment" th:field="*{approveComment}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注信息：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "manage/approveLog";
        $("#form-approveLog-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-approveLog-edit').serialize());
            }
        }
    </script>
</body>
</html>